/**
 * 
 */
package auction.chapter08;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Wei Sun
 *
 */
public class UserFKInCompPK implements Serializable{
	private String userName;
	private Long department_id;
	private Department department;
	
	private String firstName;
	private String lastName;
	
	public UserFKInCompPK(){
		
	}
	
	public UserFKInCompPK(Department dep){
		this.department_id=dep.getDpid();
		this.department=dep;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public Long getDepartment_id() {
		return department_id;
	}
	public void setDepartment_id(Long department_id) {
		this.department_id = department_id;
	}
	public Department getDepartment() {
		return department;
	}
	public void setDepartment(Department department) {
		this.department = department;
	}

}
